import request from '@/utils/request.js'
// 按需导出获取频道api请求

// 按需导出 获取文章新闻推荐的api请求
export function getArticleListApi (channelId, timestamp) {
  return request({
    url: 'articles',
    params: {
      channel_id: channelId,
      timestamp
    }
  })
}
// 通过文章id值发送不喜欢请求
export function disLikeByIdApi (target) {
  return request.post('article/dislikes', {
    target
  })
}
